// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Router from 'vue-router'
import App from '@/App'

Vue.config.productionTip = false

//注册路由
Vue.use(Router)
//实例化路由
//定义路由，每个路由应该映射一个组建
export default new Router({
  mode:'history',
  routes:[
      {path:'/',component:App}
  ]
})